package com.clear.factory.factoryMethod2.product;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.io.InputStream;


/**
 *  * todo 产品的统一抽象
 */
@NoArgsConstructor  // 无参
@AllArgsConstructor  // 满参
public abstract class AbstractResource {
    private String url;

    protected void shared() {
        System.out.println("给子类共享的方法");
    }

    /**
     * 每个子类需要独自实现
     *
     * @return
     */
    public abstract InputStream getInputStream();
}
